package box.mantianx.dao;

import box.mantianx.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author starrysky
 * @title: UserMapper
 * @projectName spring_ma
 * @description: TODO
 * @date 2021/2/315:18
 */
public interface UserMapper {
    /**
     * 查询所有用户
     * @return
     */
    CopyOnWriteArrayList<User> getUser();
    /**
     * 插入用户
     */
    int insertUser(@Param("id") Long id,
                   @Param("name") String name,
                   @Param("pwd") String pwd);
}
